package day07.ThreadDemo;

/*
 * Author: JacksonCoder
 * FileName: ThreadDemo1
 * Version: 1.0.0
 * Date: 2025/4/14
 */

class MyThread extends Thread{

    @Override
    public void run(){
        System.out.println("Thread is running " + Thread.currentThread().getName());
    }

}

public class ThreadDemo1 {
    public static void main(String[] args) {
        MyThread t1 = new MyThread();
        t1.start(); // 启动线程 自调用 run 方法
    }

}
